Xbasic
Array last_appended Method
Syntax
dim index as N = <array>.last_appended()
Returns
- indexNumeric
Returns the index of the last appended array element.
Description
The value of the last appended index.
Discussion
The <array>.last_appended() method returns the index of the element that was last appended to a dynamic array.
Example
arr[] = "a" ? arr.last_appended() = 1 arr[] = "b" arr[] = "c" arr[] = "d" ? arr.last_appended() = 4